package cn.com.jinhao.provider.business.mapper;


import cn.com.jinhao.hotline.commons.base.BaseMapper;
import cn.com.jinhao.hotline.commons.vo.system.SysDictResponseVO;
import cn.com.jinhao.provider.business.entity.SysDict;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysDictMapper extends BaseMapper<SysDict> {
    List<SysDictResponseVO> queryByPaid(String paid, String deptCode);

    @Select("SELECT COUNT(*) FROM TB_SYS_DICT WHERE PAID=#{paid}")
    String getMaxCode(String paid);
}
